KERNELDIR := /home/liuli/imxLinuxKernelSrcCodesSimple/
CURRENT_PATH := $(shell pwd)

obj-m := dtsled.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules

clean:
	rm -rf *.o *~ core .depend *.cmd *.ko *.mod.c *.mod .tmp_versions *.markers *.order *.symvers
	
app:
	arm-linux-gnueabihf-gcc  ledApp.c -o ledtest.out
